package van.planifolia.redislock.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import van.planifolia.redislock.service.GoodsServiceSp;

import javax.annotation.Resource;

/**
 * @Description: TODO
 * @Author: Van.Planifolia
 * @CreateTime: 2022-12-08  10:50
 * @Version: 1.0
 */
@RestController
public class GoodsController {
    @Resource(name = "goodsServiceSp")
    private GoodsServiceSp goodsServiceSp;
    @RequestMapping("/sale/{id}")
    public String saleGoods(@PathVariable Integer id){
        return goodsServiceSp.saleGoods(id);
    }
}
